#include <egl/egl.h>  // -lEGL in makefile

void Java_com_example_io2011_GLES20Fix_setPreserve() {
  #define EGL_SWAP_BEHAVIOR               0x3093
  #define EGL_BUFFER_PRESERVED            0x3094

  eglSurfaceAttrib(  // Possibly during dev only, for measuring.
      eglGetCurrentDisplay(), eglGetCurrentSurface(EGL_DRAW),
      EGL_SWAP_BEHAVIOR, EGL_BUFFER_PRESERVED);
}
